public class SlimeDeadState : EnemyState
{
    public SlimeDeadState(Enemy enemy, string animName) : base(enemy, animName) { }

    public override void Enter()
    {
        base.Enter();
        Enemy.Anim.SetBool(Enemy.LastAnimBoolName, true);
        Enemy.Anim.speed = 0;
        Enemy.Collider.enabled = false;
        stateTimer = 0.15f;
    }

    public override void Update()
    {
        base.Update();
        if (stateTimer > 0)
        {
            Rb.velocity = new UnityEngine.Vector2(0, 5);
        }
    }
}
